YES 0.674 H-Termination proof of /home/matraf/haskell/eval_FullyBlown_Fast/FiniteMap.hs
H-Termination of the given Haskell-Program with start terms could successfully be proven:



HASKELL
  ↳ BR

mainModule FiniteMap
  ((mapFM :: (a  ->  c  ->  b ->  FiniteMap a c  ->  FiniteMap a b) :: (a  ->  c  ->  b ->  FiniteMap a c  ->  FiniteMap a b)

module FiniteMap where
  import qualified Maybe
import qualified Prelude

  data FiniteMap b a = EmptyFM  | Branch b a Int (FiniteMap b a) (FiniteMap b a


  emptyFM :: FiniteMap b a
emptyFM EmptyFM

  mapFM :: (b  ->  c  ->  a ->  FiniteMap b c  ->  FiniteMap b a
mapFM f EmptyFM emptyFM
mapFM f (Branch key elt size fm_l fm_rBranch key (f key elt) size (mapFM f fm_l) (mapFM f fm_r)


module Maybe where
  import qualified FiniteMap
import qualified Prelude



Replaced joker patterns by fresh variables and removed binding patterns.

↳ HASKELL
  ↳ BR
HASKELL
      ↳ COR

mainModule FiniteMap
  ((mapFM :: (a  ->  c  ->  b ->  FiniteMap a c  ->  FiniteMap a b) :: (a  ->  c  ->  b ->  FiniteMap a c  ->  FiniteMap a b)

module FiniteMap where
  import qualified Maybe
import qualified Prelude

  data FiniteMap b a = EmptyFM  | Branch b a Int (FiniteMap b a) (FiniteMap b a


  emptyFM :: FiniteMap a b
emptyFM EmptyFM

  mapFM :: (b  ->  a  ->  c ->  FiniteMap b a  ->  FiniteMap b c
mapFM f EmptyFM emptyFM
mapFM f (Branch key elt size fm_l fm_rBranch key (f key elt) size (mapFM f fm_l) (mapFM f fm_r)


module Maybe where
  import qualified FiniteMap
import qualified Prelude



Cond Reductions:
The following Function with conditions
undefined 
 | False
 = undefined

is transformed to
undefined  = undefined1

undefined0 True = undefined

undefined1  = undefined0 False



↳ HASKELL
  ↳ BR
    ↳ HASKELL
      ↳ COR
HASKELL
          ↳ Narrow

mainModule FiniteMap
  (mapFM :: (a  ->  b  ->  c ->  FiniteMap a b  ->  FiniteMap a c)

module FiniteMap where
  import qualified Maybe
import qualified Prelude

  data FiniteMap b a = EmptyFM  | Branch b a Int (FiniteMap b a) (FiniteMap b a


  emptyFM :: FiniteMap a b
emptyFM EmptyFM

  mapFM :: (b  ->  a  ->  c ->  FiniteMap b a  ->  FiniteMap b c
mapFM f EmptyFM emptyFM
mapFM f (Branch key elt size fm_l fm_rBranch key (f key elt) size (mapFM f fm_l) (mapFM f fm_r)


module Maybe where
  import qualified FiniteMap
import qualified Prelude



Haskell To QDPs


↳ HASKELL
  ↳ BR
    ↳ HASKELL
      ↳ COR
        ↳ HASKELL
          ↳ Narrow
QDP
              ↳ QDPSizeChangeProof

Q DP problem:
The TRS P consists of the following rules:

new_mapFM(vy3, Branch(vy40, vy41, vy42, vy43, vy44), h, ba, bb) → new_mapFM(vy3, vy43, h, ba, bb)
new_mapFM(vy3, Branch(vy40, vy41, vy42, vy43, vy44), h, ba, bb) → new_mapFM(vy3, vy44, h, ba, bb)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs: